import request from '@/utils/request'

export const userList = (data) =>
  request({
    url: '/User/index',
    method: 'post',
    data
  });
 
  export const useradd = (data) =>
  request({
    url: '/User/useradd',
    method: 'post',
    data
  });

  export const userdel = (data) =>
  request({
    url: '/User/userdel',
    method: 'post',
    data
  });

  export const userinfo= (data) =>
  request({
    url: '/User/userinfo',
    method: 'post',
    data
  });

export const grouplist= (data) => 
  request({
    url:'/User/grouplist',
    method:'get',
    data
  });

export const groupinfo= (data) =>
request({
  url:'/User/groupinfo',
    method:'post',
    data
});

export const groupdel = (data) =>
request({
  url:'/User/groupdel',
    method:'post',
    data
});

export const groupadd = (data) =>
request({
  url:'/User/groupadd',
    method:'post',
    data
});

